package com.jk.lzy.dao;

import com.jk.lzy.model.EmpBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface EmpDao {

    Integer findEmpCount(@Param("emp")EmpBean emp);

    List<EmpBean> findEmp(@Param("start") Integer start,@Param("rows") Integer rows,@Param("emp") EmpBean emp);

    void insertEmp(EmpBean emp);

    void deleteEmp(Integer id);

    EmpBean updateEmpFindId(Integer id);

    void updateEmp(EmpBean emp);
}
